<?php
namespace app\api\validate;
use think\Validate;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/6 0006
 * Time: 下午 3:11
 */
class Comment extends Validate
{
    protected $rule =   [
        'question_id' => 'require',               //收货人
        'content' => 'require',               //收货人
    ];

    protected $message  =   [
        'question_id.require' => '未关联题目',
        'content.require' => '请选择输入评论内容',

    ];
}